package com.dsunsoft.rtu.dao;

import com.dsunsoft.rtu.core.base.BaseMapper;
import com.dsunsoft.rtu.entity.SysUser;
import com.dsunsoft.rtu.entity.SysUserRole;
import com.dsunsoft.rtu.query.SysUserQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper extends BaseMapper<SysUser, SysUserQuery> {

    SysUser selectByName(@Param("loginName") String loginName);

    int deleteUserRole(SysUser sysUser);

    int insertUserRole(@Param("roleList") List<SysUserRole> roleList);
}
